<form id="pagerForm" method="post" action="{:url('Subscribe/timeState')}">
    <input type="hidden" name="title" value="{$title}" />
    <input type="hidden" name="pageNum" value="{$page_num|default=''}" />
</form>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a rel="sys_add" class="add" href="{:url('Subscribe/addTimeState')}" target="dialog" width="700" height="600" title="添加"><span>添加</span></a></li>
            <li><a rel="sys_modify" class="edit" href="{:url('Subscribe/editTimeState')}?id={id}" target="dialog" width="700" height="600" title="修改"><span>修改</span></a></li>
<!--            <li><a class="delete" href="{:url('Subscribe/delTimeState')}?id={id}" target="ajaxTodo" title="确定要删除吗？"><span>删除</span></a></li>-->
        </ul>
    </div>
    <table class="table" width="101.8%" layoutH="132">
        <thead>
            <tr>
                <th width="5%">ID</th>
                <th width="12%">标题</th>
                <th width="7%">当前状态</th>
                <th width="7%">操作</th>
            </tr>
        </thead>
        <tbody>
            {volist name="list" id="vo"}
                <tr target="id" rel="{$vo.id}">
                    <td>{$vo.id}</td>
                    <td>{$vo.time_state|strtotime|date="H:i", ###}</td>
                    <td>
                        {switch name="$vo.status"}
                        {case value="0"}
                        <span style="color: red;margin-top: 5px;display: block">禁用</span>
                        {/case}
                        {case value="1"}
                        <span style="color: green;margin-top: 5px;display: block">启用</span>
                        {/case}
                        {/switch}
                    </td>
                    <td>
                        {switch name="$vo.status"}
                        {case value="0"}
                        <a rel="companyManage" href="{:url('Subscribe/on_off')}?id={$vo.id}&status=1" target="ajaxTodo" title="确定要启用吗？">启用</a>
                        {/case}
                        {case value="1"}
                        <a rel="companyManage" href="{:url('Subscribe/on_off')}?id={$vo.id}&status=0" target="ajaxTodo" title="确定要禁用吗？">禁用</a>
                        {/case}
                        {/switch}
                    </td>
                </tr>
            {/volist}
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>共{$count}条</span>
        </div>
        <div class="pagination" targetType="navTab" totalCount="{$count}" numPerPage="{$numPerPage}" pageNumShown="10"
             currentPage="{$pageNum}"></div>
    </div>
</div>
